package com.itheima.util;

import java.util.Random;

public class VerificationCodeUtil {
    // 生成一个六位数验证码
    public static String generateCode() {
        Random random = new Random();
        int code = random.nextInt(900000) + 100000; // 生成 100000 - 999999 之间的随机数
        return String.valueOf(code);
    }
}
